import {page, post} from '@/utils/request';
import {ApiResult} from '@/utils/data';
import config from '@/config';
import {SysOperateLogModel} from './data';

/** 获取系统操作日志接口基地址 */
const getUrl = (url: string) => config.apiBaseUrl + '/sys/operateLog' + url;

/** 系统操作日志接口服务 */
export default {
  /** 根据主键查询单个系统操作日志 */
  async selectById(id: string): Promise<ApiResult<SysOperateLogModel>> {
    return post(getUrl('/selectById'), {id});
  },

  /** 查询系统操作日志分页列表 */
  async selectPageList(data: any) {
    return page(getUrl('/selectPageList'), data);
  },
}

